package peer.rdp.command;

import peer.tools.Mdb;

public class GetDBCOM1 extends Command{
	Mdb mdb;
	public GetDBCOM1(Mdb mdb){
		this.mdb=mdb;
		data=new byte[18];
		commandType=peer.tools.CommandType.command_GetDBCOM1;
		this.mdb=mdb;
		peer.tools.ByteShortSwitch.toByteArray(commandType, data, 0);
		System.arraycopy(mdb.md, 0, data, 2, 16);
	}
	
	public GetDBCOM1(byte[] data){
		this.data=data;
		commandType=peer.tools.ByteShortSwitch.toShort(data, 0);
		byte[] md=new byte[16];
		System.arraycopy(data, 2, md, 0, 16);
		mdb=new Mdb(md);
	}
	
	public Mdb getMdb(){
		return mdb;
	}
}
